get today date magento 2 object manager

52

get today date magento 2 object manager -

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$objDate = $objectManager->create('Magento\Framework\Stdlib\DateTime\DateTime');
$date = $objDate->gmtDate();

Comments

Submit
0 Comments